package com.example.administrator.intentbaidu;

import android.os.Bundle;
import android.view.View;
import android.content.Intent;
import android.net.Uri;
import android.view.View.OnClickListener;
import android.app.Activity;
import android.widget.Button;

public class newDialerBD extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_new_dialer_bd);
        final Button button=(Button)findViewById(R.id.Button01);
        button.setOnClickListener(new Button.OnClickListener(){
            public void onClick(View b){
                Intent intent=new Intent(Intent.ACTION_VIEW);
                intent.setData(Uri.parse("http://www.baidu.com"));
                startActivity(intent);
            }
        });
    }
}
